package de.gameduell.framework.locale {
	import flash.events.Event;
	import flash.events.EventDispatcher;	

	/**
	 * @author cbra
	 */
	public class LocaleData extends EventDispatcher{
		
		private static var instance:LocaleData = new LocaleData();
		
		private var hashMap:Array;
		
		public static function getInstance():LocaleData{
			return instance;
		}
				
		public function LocaleData() {
			hashMap = new Array();
		}
		
		public function setValue(key:String,value:String):void{
			hashMap[key] = value;
			dispatchEvent(new Event(key));
		}
		
		public function getValue(key:String):String{
			return hashMap[key];
		}
		
	}
}
